package Java.com.hcj.realization.utils;

/**
 * Created by an on 2016/9/26.
 */
public class DataType {

    public String getNewDataType(String typeName){
        // 设置字段类型
        if (typeName.equals("char")
                || typeName.equals("varchar")
                || typeName.equals("narchar")) {
            return "String";
        }

        if (typeName.equals("datetime")
                || typeName.equals("date")
                || typeName.equals("timestamp")) {
            return "Date";
        }

        if (typeName.equals("bigint")
                || typeName.equals("number")){
            return "Double";
        }

        if (typeName.equals("int")) {
            return "Integer";
        }

        if (typeName.equals("")||typeName==null){
            return "Long";
        }else{
            return null;
        }
    }

}
